<?php
$path = $_SERVER['PHP_SELF'];
$arr = explode('/', $path);
$root = '/' . $arr[1] . '/myshop1';
$imgPath = $root . '/admin/public/uploads';
?>